/* Responsive Optimization Panel Styles */

/* 桌面端面板 */
.optimization-panel {
  height: 100%;
  overflow: hidden;
}

.overview {
  padding: 16px;
}

.suggestions {
  padding: 16px;
  max-height: calc(100vh - 300px);
  overflow-y: auto;
}

.suggestion-item {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.action-buttons {
  padding: 16px;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  position: sticky;
  bottom: 0;
}

/* 移动端抽屉 */
.optimization-mobile-drawer .ant-drawer-body {
  padding: 12px;
  overflow-y: auto;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 移动端概览 */
.mobile-overview {
  padding: 12px 0;
}

.mobile-overview .ant-card {
  border-radius: 8px;
}

.mobile-overview .ant-statistic-title {
  font-size: 13px;
}

/* 移动端建议列表 */
.mobile-suggestions {
  padding: 0;
}

.mobile-suggestion-item {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
}

.mobile-suggestion-item .ant-list-item-meta {
  margin-bottom: 0;
}

.mobile-suggestion-item .ant-list-item-meta-avatar {
  margin-right: 12px;
}

/* 移动端操作按钮 */
.mobile-action-buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
  z-index: 100;
}

.mobile-action-buttons button {
  min-height: 44px;
}

/* 移动端 Tabs */
.mobile-tabs .ant-tabs-nav {
  margin-bottom: 12px;
}

.mobile-tabs .ant-tabs-tab {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
}

/* 触摸友好元素 */
.optimization-mobile-drawer .h-touch {
  min-height: 44px !important;
}

.optimization-mobile-drawer .w-touch {
  min-width: 44px !important;
}

/* 移动端适配 */
@media (max-width: 767px) {
  .optimization-mobile-drawer {
    height: 90% !important;
  }

  .optimization-mobile-drawer .ant-drawer-header {
    padding: 12px 16px;
  }

  .mobile-suggestions {
    font-size: 15px;
    padding-bottom: 80px; /* 为底部按钮留空间 */
  }

  .mobile-overview .ant-row {
    margin: 0 -8px;
  }

  .mobile-overview .ant-col {
    padding: 0 8px;
  }
}

/* 优先级标签颜色 */
.priority-high {
  color: #ff4d4f;
}

.priority-medium {
  color: #faad14;
}

.priority-low {
  color: #52c41a;
}

/* 滚动条优化 */
.suggestions::-webkit-scrollbar,
.mobile-suggestions::-webkit-scrollbar {
  width: 6px;
}

.suggestions::-webkit-scrollbar-track,
.mobile-suggestions::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.suggestions::-webkit-scrollbar-thumb,
.mobile-suggestions::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.suggestions::-webkit-scrollbar-thumb:hover,
.mobile-suggestions::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 移动端隐藏滚动条 */
@media (max-width: 767px) {
  .mobile-suggestions::-webkit-scrollbar {
    display: none;
  }

  .mobile-suggestions {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}
